import axios from 'axios';

export const getDatabase = async () => {
    try {
        const response = await axios.get('http://localhost:65520/indices/getall');

        return response;
    } catch (error) {
        return {
            status: 1001,
            msg: '数据库不存在'
        };
    }
};